<?php
//include "/var/www/html/new/d/class/Member.php";

//print_r($a);
//print_r($_SESSION);
//$user = 'test1';
//$pwd = 'jjl4yk11f82ce6c0f33a5c003f2fec56';
//$inSide =new SoapClient("http://open.elonghushan.com.cn/openService/MXSE.wsdl",array('encoding' =>'UTF-8','cache_wsdl' => 0));
//$submit = $inSide->__soapCall("PFT_Order_Submit",array("ac"=>$user,"pw"=>$pwd,"in0"=>12,"in1"=>43,"in2"=>'123321',"in3"=>100,"in4"=>1,"in5"=>'2015-07-20',"in6"=>"测试test","in7"=>"18396533082","in8"=>"","in9"=>1,"in10"=>2,"in11"=>0,"in12"=>"","in13"=>0,"in14"=>0,"in15"=>0,"in16"=>1307,"in17"=>"350821199903176565"));
//var_dump($submit);

//$ac1 = "124318";
//$pw1 = "2002cb782f68481ebd5ec534bfff9e02"; //票付通账号跟密码
//$ac1 = "124529";
//$pw1 = "1fa2237fe32613fd8686b8267b6f3c92"; //票付通账号跟密码
$ac = '16ucom';
$pw = 'c33367701511b4f6020ec61ded352059';
$inSide = new SoapClient(null, array("location" => "http://localhost/open/openService/pft_insideMX.php", "uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
//$s1=new SoapClient("http://open.12301.cc/openService/MXSE.wsdl",array('encoding' =>'UTF-8','cache_wsdl' => 0));//票付通接口地址


//$ac1="100019";
//$pw1="jjl4yk11f82ce6c0f33a5c003f2fec56"; //票付通账号跟密码
//$s1=new SoapClient("http://open.12301.cc/openService/MXSE.wsdl",array('encoding' =>'UTF-8','cache_wsdl' => 0));//票付通接口地址

if (!class_exists("go_sql")) {
    include("/var/www/html/new/conf/le.je");
    $le = new go_sql();
    $le->connect();
}


//$m  = new Member($s1,35707);
//$p = $m->salePros();
//print_r($p);
//$up_otum=$inSide->Order_Change_Pro('1497232', '3', '0.03');
//
//exit;
//$r = $inSide->Terminal_Check_In('863501','524700',date('Y-m-d H:i:s'),"");
//echo $r;
//var_dump($r);

//查询景区列表
//echo "<pre>";
//$total = ($s1->__soapCall("Get_ScenicSpot_List",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>10000000,"in2"=>"")));
//var_dump($total);
//查询景区详细信息
////lid
//print_r($s1->__soapCall("Get_ScenicSpot_Info",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>3221)));

//门票列表
//lid//tid
//print_r($s1->__soapCall("Get_Ticket_List",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>3221,"in1"=>"6476")));
//
////动态价格、库存上限获取
print_r($s1->__soapCall("Dynamic_Price_And_Storage",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>20440,"in1"=>"2015-09-29","in2"=>1,"in3"=>1,"in4"=>1)));

//提交订单
//print_r($s1->__soapCall("PFT_Order_Submit", array("ac" => $ac1, "pw" => $pw1, "in0" =>11278, "in1" =>23357, "in2" => "", "in3" => 200, "in4" =>2, "in5" => "2015-09-02", "in6" => "客户名称", "in7" => "18396533082", "in8" => "", "in9" => 0, "in10" => 2, "in11" => 0, "in12" => "", "in13" => "", "in14" => 0, "in15" => 0, "in16" =>113, "in17" => "")));
//print_r($s1->__soapCall("PFT_Order_Submit", array("ac" => $ac1, "pw" => $pw1, "in0" =>10980, "in1" =>22838, "in2" => "", "in3" => 200, "in4" =>2, "in5" => "2015-08-25", "in6" => "客户名称", "in7" => "18396533082", "in8" => "", "in9" => 0, "in10" => 2, "in11" => 0, "in12" => "", "in13" => "", "in14" => 0, "in15" => 0, "in16" =>43396, "in17" => "")));

//订单查询
//var_dump($s1->__soapCall("Order_Globle_Search",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>"","in1"=>"","in2"=>"","in3"=>"2265776","in4"=>"","in5"=>"","in6"=>"","in7"=>"","in8"=>"","in9"=>"","in10"=>"","in11"=>"","in12"=>"","in13"=>"","in14"=>"","in15"=>"","in16"=>"0","in17"=>"","in18"=>"","in19"=>"","in20"=>"","in21"=>"","in22"=>"0","in23"=>"","in24"=>"","in25"=>"","in26"=>"",)));
//$order_true=2336571;
//    $pft_order = $inSide->Order_Globle_Search(
//    0, 0, 0, 0, "",
//    "", "", "", "", "",
//    "", "","", "", 0,
//    "", "", "", 1, 0,
//    0, 1,"", "", "",
//    "", "", "", "", "",
//    "", "", "1", "", "");
//$order_true=2265776;
//$pft_order = $inSide->Order_Globle_Search();
//var_dump($pft_order);
//订单短信发送、重发接口
//
//print_r($s1->__soapCall("reSend_SMS_Global_PL",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>'1512592')));

//修改、取消订单
//print_r($s1->__soapCall("Order_Change_Pro",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>'1771744',"in1"=>0,"in2"=>'')));
//print_r($s1->__soapCall("Order_Change_Pro",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>'1771744',"in1"=>0,"in2"=>'')));

//凭证码查看
//print_r($s1->__soapCall("Terminal_Code_Verify",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>"1512592")));

//资金余额查看
//print_r($s1->__soapCall("PFT_Member_Fund",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>0,"in1"=>4)));
//$r=$inSide->Terminal_Check_In('863323','790925','');
//print_r($r);
?>